﻿@{
    ViewBag.Title = "采购明细列表";
}

@model PagerModel<PurchaseOrderDetail>

<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-body table-responsive p-3">
                <table class="table table-hover text-nowrap table-bordered">
                    <thead class="thead-dark">
                        <tr>
                            <th>名称</th>
                            <th>编码</th>
                            <th>规格</th>
                            <th>花色</th>
                            <th>基材</th>
                            <th>单价</th>
                            <th>币种</th>
                            <th>成本</th>
                            <th>税率</th>
                            <th>是否可回收</th>
                            <th>备注</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model.Data)
                        {
                            <tr>
                                <td>@item.Name</td>
                                <td>@item.Code</td>
                                <td>@item.Spec</td>
                                <td>@item.Color</td>
                                <td>@item.Material</td>
                                <td>@item.Price</td>
                                <td>@item.Currency</td>
                                <td>@item.NetFinallyPriceFC</td>
                                <td>@item.TaxRate</td>
                                <td>
                                    <input asp-for="@item.IsRecovery" disabled/>
                                </td>
                                <td>@item.Remark</td>
                            </tr>
                        }
                    </tbody>
                </table>
            </div>
            <div class="card-footer">
               @await Html.PartialAsync("_Pagination")
            </div>
        </div>
    </div>
</div>